package edu.ycxy.poetry.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import edu.ycxy.poetry.entity.DjList;
import edu.ycxy.poetry.vo.AddDjVo;
import org.apache.ibatis.annotations.Insert;

import java.util.List;

/**
 * @Author @xin
 * @createDate 2022/3/14
 * @Description
 */
public interface IDjListService extends IService<DjList> {

    //查询古籍的所有内容
    PageInfo<DjList> selectListByDjList(Integer pageNum, Integer pageSize);

    //根据古籍的id查询古籍的内容
    DjList selectOneById(Integer id);

    //根据古籍的类型名查找古籍符合条件的内容
    List<DjList> selectListByType(String type);

    // 增加古籍内容
    String addDj(AddDjVo addDjVo);
}
